
package com.neuedu.factorybean;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.framework.ProxyFactoryBean;
//切面类
public class MyAspect implements MethodInterceptor{
    public Object invoke(MethodInvocation mi)throws Throwable{
       check_Permissions();
       Object obj=mi.proceed();
       log();
       return obj;    }
    public void check_Permissions(){
        System.out.println("模拟检查权限。。。");    }
    public void log(){
        System.out.println("模拟记录日志。。。");    }
}
